package org.darkforest.common.services;

import org.darkforest.model.GoodSearchBean;
import org.darkforest.model.Goods;
import org.darkforest.model.GoodsCommon;
import org.darkforest.model.GoodsCommonSearchBean;

import java.util.List;

/**
 * Created by Justin on 15/2/1.
 */
public interface GoodSearchService {
    /**
     * search goods by fuzzy name
     *
     * @param searchBean fuzzy good name, pageable
     * @return goods contains the search string
     */
    GoodSearchBean fuzzySearch(GoodSearchBean searchBean);

    /**
     * return all goods
     *
     * @param searchBean page info available only
     * @return all goods
     */
    GoodSearchBean allGoods(GoodSearchBean searchBean);

    /**
     * 根据id获取商品基本信息，购物车使用
     * @param goodsId
     * @return
     */
    Goods getCartGoodsInfo(Integer goodsId);

    List<Goods> selectSellerList(GoodSearchBean searchBean);


    /**
     * 根据条件查询GoodsCommon列表
     * @param goodsCommonSearchBean
     * @return
     */
    List<GoodsCommon> listGoodsCommonByCondition(GoodsCommonSearchBean goodsCommonSearchBean);

}
